﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    /// <summary>
    /// 用户账户明细
    /// </summary>
    public enum UserAccountDetailType   //数据库视图UserAccountDetail,UserAccountReport 关联此枚举
    {
        /// <summary>
        /// 购彩
        /// </summary>
        Play = 1001,
        /// <summary>
        /// 提款
        /// </summary>
        TackMoney = 1002,
        /// <summary>
        /// 追号任务
        /// </summary>
        ChaseTask=1003,

        /// <summary>
        /// 充值
        /// </summary>
        AddMoney = 2001,
        /// <summary>
        /// 返点
        /// </summary>
        BackMoney = 2002,
        /// <summary>
        /// 下级返点
        /// </summary>
        BackMoney_Child = 2003,
        /// <summary>
        /// 中奖
        /// </summary>
        WinMoney = 2004,
        /// <summary>
        /// 返奖
        /// </summary>
        WinMoney_Child = 2005,
        /// <summary>
        /// 撤单
        /// </summary>
        QuashScheme = 2006,

        /// <summary>
        /// 其它
        /// </summary>
        Other = 3001,
        /// <summary>
        /// 冻结/解冻
        /// </summary>
        Freez=3002,
    }


    public static class UserAccountDetailTypeEx
    {
        public static string GetName(this UserAccountDetailType type)
        {
            switch (type)
            {
                case UserAccountDetailType.Play:
                    return "购彩";
                case UserAccountDetailType.ChaseTask:
                    return "追号";
                case UserAccountDetailType.TackMoney:
                    return "提款";
                case UserAccountDetailType.AddMoney:
                    return "充值";
                case UserAccountDetailType.BackMoney:
                    return "返点";
                case UserAccountDetailType.BackMoney_Child:
                    return "下级返点";
                case UserAccountDetailType.WinMoney:
                    return "中奖";
                case UserAccountDetailType.WinMoney_Child:
                    return "返奖";
                case UserAccountDetailType.QuashScheme:
                    return "撤单";
                case UserAccountDetailType.Other:
                    return "其它";
                case UserAccountDetailType.Freez:
                    return "冻结/解冻";
                default:
                    return string.Empty;
            }
        }
    }
}
